﻿<%@ Page Language="C#" MasterPageFile="~/Member/UserManage.master" AutoEventWireup="true"
    CodeFile="MemberProductAdd.aspx.cs" Inherits="Member_Trade_MemberProductAdd"
    Title="添加我要加入产品库" %>

<%@ Register Src="../../Control/PageNo.ascx" TagName="PageNo" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" runat="Server">
<div class="inkg mar_top">
    <div id="sub_content">
        <div class="pagetitle">
            友情提示:
        </div>
    </div>
    <asp:DataList ID="dlProducts" runat="server" DataKeyField="ID" Width="100%" OnItemDataBound="dlProducts_ItemDataBound"
        CellPadding="4" ForeColor="#333333">
        <HeaderTemplate>
            <table width="100%" style="border: 1px #000000">
        </HeaderTemplate>
        <ItemTemplate>
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td width="100">
                        <a href="../..<%# DataBinder.Eval(Container.DataItem, "Picture")%>">
                            <img src="../..<%# DataBinder.Eval(Container.DataItem, "Picture")%>" border="0" width="100px" height="92px" /></a>
                    </td>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    【产品名称】：<font color="blue"><%# DataBinder.Eval(Container.DataItem, "Name")%></font>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <font color="gray">【产品说明】：
                                        <%#  DataBinder.Eval(Container.DataItem, "Detail").ToString().Length > 40 ? DataBinder.Eval(Container.DataItem, "Detail").ToString().Substring(0, 40) : DataBinder.Eval(Container.DataItem, "Detail").ToString()%>
                                    </font>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    【供应商列表】 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="MemberProductEdit.aspx?productID=<%# Eval("ID") %>">
                                        您想固定靠前吗？</a>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Table ID="supply" runat="server">
                                    </asp:Table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnAdd" runat="server" Text="我也有这种产品" CommandArgument='<%# Eval("ID") %>'
                                        OnCommand="btnAdd_Command" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="Label1" runat="server" ForeColor="green" Text="申请等待管理员审核通过中..." Visible="false"></asp:Label>
                                    <asp:Label ID="Label2" runat="server" Text="成为供应商已经审核通过." ForeColor="green" Visible="false"></asp:Label>
                                    <asp:Label ID="Label3" runat="server" ForeColor="red" Text="审核未通过!." Visible="false"></asp:Label>
                                    <asp:LinkButton ID="LinkButton1" runat="server" Visible="false" ForeColor="red" Font-Underline="false"
                                        OnClientClick="return confirm('你确定要撤消供应吗?')" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID")%>'
                                        OnCommand="LinkButton1_Command">撤消供应</asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <AlternatingItemStyle BackColor="White" />
        <ItemStyle BackColor="#EFF3FB" BorderWidth="0px" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    </asp:DataList>
    <div class="Paging">
        <p>
           <uc1:PageNo ID="PageNo1" runat="server" />
        </p>
    </div>
    </div>
</asp:Content>
